package com.china.school.annotation;

import com.china.school.pojo.User;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.function.Predicate;

@Import(ImportSelectorImpl.class)
public class ImportSelectorImpl implements ImportSelector {


    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{User.class.getName()};
    }

    @Override
    public Predicate<String> getExclusionFilter() {
        return null;
    }

 }
